from link.models import FriendLink



#获取友链
def get_friend_links():
    items_obj = FriendLink().get_all_link()
    link_list=[(i.title,i.url,i.weight) for i in items_obj]
    return link_list
